|
OFFSET LIMB
This command will change the relative position of the specified limb within the 3D object.
OFFSET LIMB Object Number, Limb Number, X, Y, Z
OFFSET LIMB Object Number, Limb Number, X, Y, Z, Bounds Flag
Object Number
Integer
The object number
Limb Number
Integer
The limb number
X
Float
The x position value
Y
Float
The y position value
Z
Float
The z position value
Bounds Flag
Integer
if the Bounds Flag is set to one, the entire object shall recalculate its internal bounding box and bounding sphere, used for screen culling
This command does not return a value.
The position of the limb is always offset from the main coordinates of the 3D object and from any parent limbs. Specifying a limb number of zero provides access to the objects own root data, and should not normally be used in this way. The object and limb parameters should be specified using integer values. The offset parameters should be specified using real numbers.
make object cube 1,10
make mesh from object 5,1
add limb 1,1,5
recalcbounds=1
offset limb 1,1,-100,0,0,recalcbounds
move camera -200
wait key
BASIC3D Commands Menu
Index
|